package com.hzw.saas.service.rss.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hzw.saas.service.rss.model.JournalUserSub;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 期刊的用户订阅 Mapper 接口
 * </p>
 *
 * @author sonam
 * @since 2021-06-30
 */
@Mapper
public interface JournalUserSubMapper extends BaseMapper<JournalUserSub> {
    @Delete("<script> delete from tb_journal_user_sub where user_id = #{userId}</script>")
    void deleteByUserId(@Param("userId") String userId);
}
